<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<script src="includes/js/joomla.javascript.js" type="text/javascript"></script>

<form method="post" action="index.php" id="adminForm">
	<fieldset>
		<legend><h4> <?php echo JText::_('COM_SEVENT_NEW_EVENT_HEADING_LABEL');?> </h4></legend>
		<div>
			<label> <?php echo JText::_('COM_SEVENT_NEW_EVENT_KIND_LABEL');?> </label> <select name="inputEventType" class="inputbox">
				<?php 
				foreach ($this->event_types as $type)
				{
					//$html = ' <option>'. $type->event_type .'</option> ';
					$html = ' <option>'. $type .'</option> ';
					echo $html;
				
				}
				?>
			</select>
		</div>
		<div> 
			<label> <?php echo JText::_('COM_SEVENT_NEW_EVENT_DATE_LABEL');?> </label> <?php echo JHTML::_('calendar', $this->item->publish_down, 'publish_down', 'publish_down',
			   '%Y-%m-%d', 
			   array('class'=>'inputbox', 'size'=>'15',  'maxlength'=>'19', 
			      'onclick'=> "return showCalendar('publish_down','%Y-%m-%d');")); 
			?> 
		</div>
		
		<div>
			<label> <?php echo JText::_('COM_SEVENT_NEW_EVENT_TIME_LABEL');?> </label> 
			<select name="inputTimeHours" class="inputbox">
			<option> 00 </option><option> 01 </option><option> 02 </option><option> 03 </option>
			<option> 04 </option><option> 05 </option><option> 06 </option><option> 07 </option> 
			<option> 08 </option><option> 09 </option><option> 10 </option><option> 11 </option> 
			<option> 12 </option><option> 13 </option><option> 14 </option><option> 15 </option> 
			<option> 16 </option><option> 17 </option><option> 18 </option><option> 19 </option> 
			<option> 20 </option><option> 21 </option><option> 22 </option><option> 23 </option> 
			</select>
			
			<select name="inputTimeMins" class="inputbox">
			<option> 00 </option><option> 15 </option><option> 30 </option><option> 45 </option>
			</select>
		</div>
		
		<div>
			<label> <?php echo JText::_('COM_SEVENT_NEW_EVENT_COMMENT_LABEL');?> </label> <input type="text" name="inputComment" class="inputbox" size="55" maxlength="250" /> 
		</div>
		
		<div>
			<br>
			<label> <?php echo JText::_('COM_SEVENT_NEW_EVENT_NOTIFY_LABEL');?> </label> <span class="inputbox"> <input type="checkbox" name="inputNotification" /> </span>
		</div>
	
		<br><br>
		<div>
			<input type="submit" value="<?php echo JText::_('COM_SEVENT_NEW_EVENT_SAVE_BUTTON');?>" class="button" />
		</div>
	</fieldset>	
	
	<input type="hidden" name="option" value="com_sevent" />
	<input type="hidden" name="task" value="submitNewSevent" />
	<input type="hidden" name="view" value="sevents" />
	

	<?php echo JHTML::_( 'form.token' );  ?> 
</form> 
